package com.atguigu.day02;

public class Test2 {

    public static void main(String[] args) {
        int i1 = 100;
        long l1 = 200l;
        long add = i1 + l1;
        System.out.println("add 的值:" + add);// 300
        long l2 = 200l;
        float f2 = 3.14f;
        float add2 = l2 + f2;
        System.out.println("add2的值:" + add2);// 203.14
        int i3 = 100;
        double d3 = 3.14;
        double add3 = i3 + d3;
        System.out.println("add3的值:" + add3);// 103.14
        float f4 = 3.14f;
        double d4 = 3.14;
        double add4 = f4 + d4;
        System.out.println("add4的值:" + add4);// 6.2800010~~~~
    }
}
